When an access point is removed before it has a SSID, e.g. a hidden one,
the `NMAccessPoint` and signal tracker will be leaked due to
`notify::ssid` never getting triggered. To fix this disconnect all
access points on removal.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4422>
(cherry picked from commit
bec12ffd2075608d10550232e11516d79b036f7c)
}
_removeAccessPoint(ap) {
+ ap.disconnectObject(this);
+
const network = this._networks.find(n => n.removeAccessPoint(ap));
if (!network || network.hasAccessPoints())